package com.fancy.application.common.filter;


import com.fancy.application.common.constant.Constants;
import lombok.extern.log4j.Log4j2;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

//获取设置编码格式
//@WebFilter(filterName = "fancyFormFilter", urlPatterns = {"/*"})
@Log4j2
public class FancyFormFilter implements IFancyHandlerFilter {
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
//        request.setCharacterEncoding(Constants.DEFAULT_CHARSET);
//        response.setCharacterEncoding(Constants.DEFAULT_CHARSET);
        chain.doFilter(request, response);
    }
}
